package com.UnionPayCenter.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @program: UnionPayCenter
 * @description: 用户会员卡信息
 * @author BaoJF
 *
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "card_info")
public class CardInfo {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "主键")
    @Column(name = "id")
    private Integer id;
    
    @ApiModelProperty(value = "卡号")
    @Column(name = "card_id")
    private String cardId;
    
    @ApiModelProperty(value = "用户id")
    @Column(name = "user_id")
    private Integer userId;
    
    @ApiModelProperty(value = "卡类型id")
    @Column(name = "card_type")
    private Integer cardType;
    
    @ApiModelProperty(value = "领取日期")
    @Column(name = "get_time")
    private String getTime;
    
    @ApiModelProperty(value = "商户id")
    @Column(name = "b_id")
    private Integer bId;
    
    @ApiModelProperty(value = "添加时间")
    @Column(name = "create_time")
    private Timestamp createTime;

    @JsonIgnore
    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
    private Timestamp updateTime;

    @ApiModelProperty(value = "备注")
    @Column(name = "remark")
    private String remark;
}
